package patterns.itetator.main;

import patterns.itetator.core.Collection;
import patterns.itetator.core.Iterator;
import patterns.itetator.core.MyCollection;

public class Test {
	public static void main(String[] args) {
		Collection collection = new MyCollection();
		Iterator iterator = collection.iterator();
		while(iterator.hasNext()){
			System.out.println(iterator.next());
		}
	}
}
